package com.lgx.mall.basic.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.lgx.common.entity.IdGenerator;

/**
 * 运费
 * 
 * @author hezhuo
 *
 */
@Entity
@Table(name = "TM_FARE")
public class Fare implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6390454123005015414L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.TM_FARE_ID)
	@TableGenerator(
			name = IdGenerator.TM_FARE_ID,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.TM_FARE_ID,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private long id;
	
	/**
	 * 发货地市
	 */
	private String fromCity;
	
	/**
	 * 收货地市
	 */
	private String toCity;
	
	/**
	 * 首重
	 */
	private double firstWeight;
	
	/**
	 * 首重费用
	 */
	private double firstPrice;
	
	/**
	 * 续重
	 */
	private double nextWeight;
	
	/**
	 * 续重费用
	 */
	private double nextPrice;
	
	/**
	 * 数量
	 */
	private int amount;
	
	private String prop1;
	
	private String prop2;
	
	private String prop3;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public double getFirstWeight() {
		return firstWeight;
	}

	public void setFirstWeight(double firstWeight) {
		this.firstWeight = firstWeight;
	}

	public double getFirstPrice() {
		return firstPrice;
	}

	public void setFirstPrice(double firstPrice) {
		this.firstPrice = firstPrice;
	}

	public double getNextWeight() {
		return nextWeight;
	}

	public void setNextWeight(double nextWeight) {
		this.nextWeight = nextWeight;
	}

	public double getNextPrice() {
		return nextPrice;
	}

	public void setNextPrice(double nextPrice) {
		this.nextPrice = nextPrice;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public String getProp1() {
		return prop1;
	}

	public void setProp1(String prop1) {
		this.prop1 = prop1;
	}

	public String getProp2() {
		return prop2;
	}

	public void setProp2(String prop2) {
		this.prop2 = prop2;
	}

	public String getProp3() {
		return prop3;
	}

	public void setProp3(String prop3) {
		this.prop3 = prop3;
	}
}
